home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / msdos / raytrace / portray / exam_005.sce < prev    next >
Text File  |  1993-12-29  |  2KB  |  108 lines

  1.  
  2. background (0 0 1)
  3.  
  4. camera
  5.    look-at (0.0 0.0 0.0)
  6.    drop-line (0 -1 0)
  7.    origin (-3 3 -8)
  8.    depth 0.56
  9.    x-size 0.64
  10.    y-size 0.48
  11.    filter standard
  12. ;
  13.  
  14. image
  15.    xsize 640
  16.    ysize 480
  17. ;
  18.  
  19. object
  20.    plane
  21.       position (-1000 0 -1000)
  22.       normal (0 1 0)
  23.       x-axis (1 0 0)
  24.       y-axis (0 0 1)
  25.    ;
  26.    material
  27.       colour (.3 .3 .3)
  28.    ;
  29. ;
  30.  
  31. object
  32.    csg
  33.       intersect
  34.       operand1
  35.          sphere
  36.             centre (0 1 0)
  37.             radius 1
  38.          ;
  39.          material
  40.             colour (1 0 0)
  41.          ;
  42.       ;
  43.       operand2
  44.          box
  45.             a (-0.8 0.2 -0.8)
  46.             b ( 0.8 1.8  0.8)
  47.          ;
  48.          material
  49.             colour (1 0 0)
  50.          ;
  51.       ;
  52.    ;
  53. ;
  54.  
  55.  
  56. object
  57.    primative csg
  58.       union
  59.       operand1
  60.          sphere
  61.             centre (3 1 0)
  62.             radius 1
  63.          ;
  64.          material
  65.             colour (0 1 0)
  66.          ;
  67.       ;
  68.       operand2
  69.          box
  70.             a ( 2.2 0.2 -0.8)
  71.             b ( 3.8 1.8  0.8)
  72.          ;
  73.          material
  74.             colour (0 1 0)
  75.          ;
  76.       ;
  77.    ;
  78. ;
  79.  
  80. object
  81.    csg
  82.       subtract
  83.       operand2
  84.          sphere
  85.             centre (-3 1 0)
  86.             radius 1
  87.          ;
  88.          material
  89.             colour (0 0 1)
  90.          ;
  91.       ;
  92.       operand1
  93.          box
  94.             a ( -2.2 0.2 -0.8)
  95.             b ( -3.8 1.8  0.8)
  96.          ;
  97.          material
  98.             colour (0 0 1)
  99.          ;
  100.       ;
  101.    ;
  102. ;
  103.  
  104. light
  105.    colour (1 1 1)
  106.    position (-200 1000 -100)
  107. ;
  108.